package com.disapand.mall.handle;

import lombok.Getter;

/**
 * @author disapand
 */
@Getter
public enum ResponseStatus {
    /**
     * 请求成功
     */
    SUCCESS(0, "操作成功"),
    /**
     * 未找到对应的资源
     */
    NOT_FOUND(100404, "资源未找到");

    /**
     * 状态码
     */
    private final Integer code;
    /**
     * 状态码对应的提示信息
     */
    private final String message;

    ResponseStatus(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
